// 模拟后端服务
const express = require("express");
const app = express();
const port = 3002;

// 代理请求的路由
app.get("/api/WeightRule/GetWeightRuleEnumData", (req, res) => {
  console.log("===>666655555");

  // 假设我们在这里处理了数据，并且一切正常
  res
    .status(200)
    .send({
      data: { anme: "Data received successfully.30023333", port: port },
      code: 0,
      msg: "success",
    });
  // });
});
// 代理请求的路由
app.all("/*", (req, res) => {
  console.log("=====>", req.params);
});
// 启动服务器cls

app.listen(port, "0.0.0.0", () => {
  console.log(`Server running on http://localhost:${port}`);
});
